var mongoose = require('mongoose');
var test = require('./test.formSchema')
var sms = require('./sms.uploadeSchema')
const modelSchemas = {
  test,
  sms
}

for (let modelSchema in modelSchemas) {
  mongoose.model(modelSchema, new mongoose.Schema(modelSchemas[modelSchema]))
}
module.exports = {
  getModel: function(name) {
    return mongoose.model(name)
  }
}